<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<include file="Admin:head" />

		<body>
			<include file="Admin:top" />
				<div class="container-fluid">
					<div class="row">
						<include file="Admin:leftmenu" />
						<div class="col-md-10">

							<script type="text/javascript">
								$(document).ready(function() {
									$(".preview").preview();
								});
							</script>

							<ol class="breadcrumb">
								<li>
									<a href="<{:U('Admin/user_list')}>">用户管理</a>
								</li>
								<li>
									<a href="<{:U('Admin/user_list')}>">用户列表</a>
								</li>
								<li class="active">添加新用户</li>
							</ol>

							<form action="<{:U('Admin/user_add_do')}>" method="post" class="form-horizontal form-validata" enctype="multipart/form-data">
								<div class="form-group">
									<label class="col-md-1 control-label" for="usergroup">用户组</label>
									<div class="col-md-2">
										<select name="usergroup" class="form-control">
											<option value="0" selected="selected">学生组</option>
											<option value="1">教师组</option>
											<option value="2">管理员组</option>
										</select>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-md-1 control-label" for="username">用户名</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="username" id="username" value="<{$info.nick}>" />
									</div>
									<label class="col-md-1 control-label" for="nick">昵称</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="nick" id="nick" value="<{$info.nick}>" />
									</div>
									<label class="col-md-1 control-label" for="password">密码</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="password" id="password" value="" />
									</div>
									<label class="col-md-1 control-label" for="grade">年级</label>
									<div class="col-md-2">
										<input type="text" class="form-control" name="grade" id="grade" value="<{$info.grade}>" placeholder="此项非必要字段"/>
									</div>
								</div>

								<div class="form-group">
									<div class="col-md-11 col-sm-offset-1">
										<input type="submit" class="btn btn-info" value="添加" />
									</div>
								</div>
							</form>

							<script type="text/javascript">
								$("#path").val("");
							</script>

							<input type="hidden" id="menu_action" value="user" />
						</div>
					</div>

				</div>

				<include file="Admin:menu_action" />

		</body>

</html>